package co.yixiang.hw.repository;

import co.yixiang.hw.domain.YxUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
* @author Walert
* @date 2020-02-09
*/
public interface YxUserRepository extends JpaRepository<YxUser, Integer>, JpaSpecificationExecutor<YxUser> {

    YxUser findByPhone(String userName);

    List<YxUser> findByUsernameOrderByUidAsc(String userName);
}